/* 
 * File:   driver_dcf.h
 * Author: Ich
 *
 * Created on 23.02.2014, 16:03
 *
 * Description:
 * Driver for DCF77 module DCF2 von ELV (Art-Nr. 68-09 16 10).
 * Attention: Signal is inverted
 */

#ifndef DRIVER_DCF_H
#define	DRIVER_DCF_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <GenericTypeDefs.h>
#include <time.h>
/*******************************************************************************
 *  public preprocessing definitions
 */
 /*******************************************************************************
 *  public variables
 */

/*******************************************************************************
 *  public functions
 */

/* Initialises DCF module
 *
 * param(in)    interruptFunction   function that will be called on interrupt (full date and time received --> message to system for updating date/time)
 */
void drvDcf_init                (void (*interruptFunction)(void));


/* Get's the received date and time if it's available.
 *
 * param(out)   dateTime
 *
 * return       isAvailable     true = ok, false = no valid signal received
 *
 */
BOOL drvDcf_getDateTime             (struct tm *pDateTime);

#ifdef	__cplusplus
}
#endif

#endif	/* DRIVER_DCF_H */


